import datetime
from google.appengine.ext import db
from google.appengine.api import users
from urlparse import urljoin
from django.utils import simplejson
import logging
import os
from datetime import datetime

class Project(db.Model):
    name = db.StringProperty(required=True)
    owner = db.UserProperty()
    secret_key = db.StringProperty(required=True)
    last_update = db.DateTimeProperty()
    
    def last_update_formated(self):
        return datetime.fromtimestamp(self.timestamp).strftime(
            '%a %B %H:%M:%S %Y')